package com.eaoa.uc.account.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.eaoa.base.EABaseAction;
import com.eaoa.uc.account.form.AccountCondition;
import com.eaoa.uc.account.form.AccountSearchForm;

public class EmployeeSelectDialogPreAction extends EABaseAction{
	protected ActionForward doWork(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response){
		
		AccountSearchForm sform = (AccountSearchForm) form;
		sform.initConditionPost();
		AccountCondition condition = (AccountCondition) sform.getCondition();
		
		String style=request.getParameter("style");

		String selected_empno = request.getParameter("selected_empno");
		if(StringUtils.isBlank(selected_empno)){
			selected_empno = "0";
		}
		
		
		request.setAttribute("style", style);
		request.setAttribute("selected_empno", selected_empno);
		return  mapping.findForward("success");
	}
	
}